POV-Ray : Newsgroups : povray.newusers : Orthographic camera problems : Orthographic camera problems Server Time
30 Jul 2024 00:18:19 EDT (-0400)
  Orthographic camera problems  
From: Drax7
Date: 3 Jan 2005 07:25:01
Message: <web.41d9398029446c6b872cdb970@news.povray.org>
I'm seeing very strange behavior from the orthographic camera, where
sometimes the whole image seems to disappear from the camera. I worked up a
simple script to demonstrate the problem that creates four spheres at a
Z-coordinate of 1. (This script works as I expect, the problem comes
later):

camera {
    orthographic
    #declare WINDOW=2;
    right WINDOW*4/3*x
    up WINDOW*y
    translate <0.5, 0.5, 0>
}

#macro RefBall(loc)
sphere {
    loc 0.2
    pigment {rgb loc}
    finish {ambient 1}
}
#end

RefBall(<0,0,1>)
RefBall(<0,1,1>)
RefBall(<1,0,1>)
RefBall(<1,1,1>)

As I expect, I see four circles. Now if I change the camera to say:
    translate <0.5, 0.5, 0.5>
I would expect to see these same four spheres. But instead I see nothing.

What's really strange is that if I translate the camera to anything up from
<0.5, 0.5, -10000> to <0.5, 0.5, 0.2> then I *do* see the four spheres with
a Z-coordinate of 1. But as soon as I hit <0.5, 0.5, 0.2001> everything
disappears. Strangely, the point where everything disappears matches the
diameter of the sphere - if I make the diameter of the sphere 0.3, then I
can move the camera to <0.5, 0.5, 0.3> before everything disappears.

Is this a bug, or do I have some fundamental misunderstanding of how the
orthographic camera works?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.